<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>欢迎</title>
    <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript">

        $(document).ready(function () {
            $.get( "/api/user/info", function (data) {
                if (data == "Access Denied!") {
                    window.location.href = "./login.html";
                } else {
                    $("#welcome").text(data);
                }
            })
        })
    </script>
</head>
<body>

<div style="margin: auto;  width: 80%;">
    <p>
        <span id="welcome"></span>, 欢迎登陆系统
    </p>
</div>

</body>
</html>